package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IPersonFragmentContract;
import com.clouddot.baipai.model.PersonFragmentModel;
import com.clouddot.baipai.presenter.PersonFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class PersonFragmentModule {

    private IPersonFragmentContract.IView mView;

    public PersonFragmentModule(IPersonFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public IPersonFragmentContract.IPresenter providerPresenter() {
        return new PersonFragmentPresenter(mView, new PersonFragmentModel(mView.getContext()));
    }
}
